package com.joshua.spring.entity.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;

/**
 * projectName dragon-cloud
 * package com.joshua.spring.entity.bo
 * classname  TokenInfo
 * <p>
 * description
 * </p>
 *
 * @author <a href="mailto:joshualwork@163.com">joshua_liu</a>
 * @date 2020/9/18 11:12
 */
@Data
public class TokenInfo {
    @JsonProperty(value = "access_token",access = JsonProperty.Access.READ_WRITE)
    private String accessToken;

    @JsonProperty(value = "token_type",access = JsonProperty.Access.READ_WRITE)
    private String tokenType;

    @JsonProperty(value = "refresh_token",access = JsonProperty.Access.READ_WRITE)
    private String refreshToken;

    @JsonProperty(value = "expires_in",access = JsonProperty.Access.READ_WRITE)
    private Long expiresIn;

    private String scope;

    private Integer status;
    private boolean success;
    private String code;
    private String errorCode;
    private String msg;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date timestamp;
}

